<%@page import="com.wx.model.Sta"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文具管理</title>
</head>
<body>
	<div class="seach">
		<form action="../servlet/FindStaServlet" method="get">
			文具id:<input type="text" name="staid">
			文具名:<input type="text" name="staname">
			品牌:<input type="text" name="brand">
			类型：<input type="text" name="statype">
			<input type="submit" value="搜索">
		</form>
	</div>
	<%
		List<Sta> list=(List<Sta>)request.getAttribute("list");
		
	%>
	<table cellpadding="3" cellspacing="5" border="1" style="border-collapse:collapse;">
		<tr>
			<th>文具ID</th>
			<th>类型ID</th>
			<th>文具名</th>
			<th>品牌</th>
			<th>型号款式</th>
			<th>存量</th>
			<th>价格</th>
			<th>描述</th>
			<th>销售量</th>
			<th>操作</th>
		</tr>
		<% 
		if(list!=null && list.size()>0){
 			for(Sta sta:list){
				%> 
				<tr>
					<td><%=sta.getStaid() %></td>
					<td><%=sta.getStatypeid() %></td>
					<td><%=sta.getStaname() %></td>
					<td><%=sta.getBrand() %></td>
					<td><%=sta.getStatype() %></td>
					<td><%=sta.getStacount() %></td>
					<td><%=sta.getPrice() %></td>
					<td><%=sta.getDis() %></td>
					<td><%=sta.getSalenum() %></td>
					<td><a href="#">修改</a href="../servlet/DeleteStaServlet">|<a href="#">删除</a>
				</tr>
				<%
 			}
		}
 		%> 
	</table>
</body>
</html>